package com.fortune.rainshineservice.mapper;

import com.fortune.rainshinecommon.model.CbmCityModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CbmCityMapper {
    List<CbmCityModel> selectAll();

    List<CbmCityModel> getProvinces();

    List<CbmCityModel> getCitiesByProvince(@Param("provinceCode") String provinceCode);

    List<CbmCityModel> getAreaByCityCode(@Param("cityCode") String cityCode);

    String getCityNameByCode(@Param("cityCode") String cityCode);

    String getProvinceNameByCode(@Param("cityCode") String cityCode);

}
